package com.itlong.cloud.POJO.PO;/**
 * Created by cuiduanwu on 2017/9/19.
 */

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 房间基本信息
 *
 * @author cuiduanwu
 * @create 2017--19 9:02
 */
@ItlTables("room_info")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class RoomInfoPO extends BasePO implements Serializable{

    @ItlField(value = "room_id",logicKey = "key")
    private String roomId; //房间ID

    @ItlField("room_num")
    private  String roomNum; //房间编号，4位（2位楼层号+2位房号）

    @ItlField("room_name")
    private  String roomName; //房间名称

    @ItlField("build_id")
    private String buildId; //楼栋ID

    @ItlField("unit_id")
    private String unitId; //单元ID

    @ItlField("project_id")
    private String projectId; //项目编号

    @ItlField("room_type")
    private Integer roomType; //房间类型，如厂房、仓库等，请参见数据字典

    @ItlField("room_layout")
    private Integer roomLayout; //房间户型,如三室两厅、一室两厅等，请参见数据字典

    @ItlField("built_area")
    private String builtArea; //建筑面积

    @ItlField("inner_area")
    private String innerArea; //套内面积

    @ItlField("out_area")
    private String outArea; //公摊面积

    @ItlField("first_choice")
    private String firstChoice; //优先呼叫方式,qq/phone

    @ItlField("phone_no")
    private String phoneNo; //房屋被呼号码（即紧急联系电话）列表，逗号风格

    @ItlField("landline_no")
    private String landlineNo; //座机（全号）列表，逗号分隔

    @ItlField("extension_no")
    private String extensionNo; //座机(分机)列表，逗号分隔


    @ItlField("call_order")
    private String callOrder; //呼叫号码（手机1，座机全号2，座机分机3）的呼叫顺序,如3,1,2,代表先呼叫座机分机，再呼叫手机，再呼叫座机。

    @ItlField("qq_num")
    private String qqNum; //优先联系QQ 【本字段已过时】

    @ItlField("is_allow_phone")
    private Integer isAllowPhone; //电话是否允许被呼叫，默认0，0-是，1-否

    @ItlField("room_alias")
    private String roomAlias; //房间呼叫代号,默认与房屋编号一致，由用户自定义

    @ItlField("liftDoor_type")
    private Integer liftDoorType; //正背门，默认1,0-背门，1-正门

    @ItlField("room_status")
    private Integer roomStatus; //房间状态，如入住、空置，请参见数据字典

    @ItlField("remark")
    private String remark; //备注

    @ItlField("arrearage_status")
    private String arrearageStatus;      //房屋欠费状态, 0代表否, 1代表是

    @ItlField("soft_card_nums")
    private String softCardNums;      //软卡号，多个,号分隔

    @ItlField("charge_mode")
    private Integer chargeMode;     // 收费模式，1按次，2按有效期
//    @ItlField("usable_times")
//    private String usableTimes;    // 可用次数
    @ItlField("end_time")
    private Date endTime;         // 有效期
    @ItlField("hard_card_nums")
    private String hardCardNums;        //硬卡号
    @ItlField("finger_nums")
    private String fingerNums;          //指纹号
    private String phoneNum;        //拓展字段
    private String realName;        //拓展字段
    private String arrearsTime;     //欠费时间，yyyy-mm-dd 如 2019-06-06
//    @ItlField("build_name")
//    private  String buildName; //楼栋名称
//
//    @ItlField("unit_name")
//    private  String unitName; //单元名称
//
//    @ItlField("room_type_name")
//    private  String roomTypeName; //房间类型名称
//
//    @ItlField("room_layout_name")
//    private  String roomLayoutName; //房间户型名称
//
//    @ItlField("room_status_name")
//    private  String roomStatusName; //房间状态名称
//
//    @ItlField("liftDoor_type_name")
//    private  String liftDoorTypeName; //电梯正背门类型名称


    public RoomInfoPO(String projectId,String buildId,String unitId,String roomId, String roomNum, String roomName, String roomAlias, Integer liftDoorType) {
        this.roomId = roomId;
        this.roomNum = roomNum;
        this.roomName = roomName;
        this.buildId = buildId;
        this.unitId = unitId;
        this.projectId = projectId;
        this.roomAlias = roomAlias;
        this.liftDoorType = liftDoorType;
    }
}
